-
Notifications
You must be signed in to change notification settings - Fork 0
/
Year 34 - Seek and Destroy 1
78 lines (77 loc) · 1.15 KB
/
Year 34 - Seek and Destroy 1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
-- 7 Billion Humans (2214M) --
-- 34: Seek and Destroy 1 by @commonnickname and @abfipes12 --
-- calculated expected => 71.4% ; failed 21 out of 100 => 79% successful --
mem1 = nearest wall
step n
mem2 = nearest wall
step n
mem3 = nearest wall
step n
if mem1 == mem2 and
mem2 == mem3:
mem2 = nearest datacube
step n
jump a
endif
if mem1 != mem2 and
mem2 == mem3:
mem4 = set 4
endif
if mem1 == mem2 and
mem2 != mem3:
mem4 = set 2
endif
if mem1 != mem2 and
mem2 != mem3:
mem4 = set 1
endif
mem2 = nearest datacube
step n
mem1 = nearest datacube
if mem1 < mem2:
mem2 = nearest datacube
endif
a:
step n
mem1 = nearest datacube
if mem1 < mem2:
mem2 = nearest datacube
endif
step n
mem1 = nearest datacube
if mem1 < mem2:
mem2 = nearest datacube
endif
step n
mem1 = nearest datacube
if mem1 < mem2:
mem2 = nearest datacube
endif
step n
mem1 = nearest datacube
if mem1 < mem2:
mem2 = nearest datacube
endif
if mem4 == 0 or
mem4 == 4:
step n
b:
mem1 = nearest datacube
if mem1 <= mem2:
pickup n
else:
pickup mem2
endif
jump c
endif
if mem4 == 2:
if n < mem2:
pickup n
else:
pickup mem2
endif
c:
mem4 = nearest shredder
giveto mem4
endif
jump b